package com.dwd.basic.service;

import com.dwd.basic.exception.CustomException;

import javax.mail.MessagingException;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/16 14:51
 * @Version 1.0
 */
public interface IVerification {
    /**
     * 发送验证码
     *
     * @param phone
     * @throws CustomException
     */
    void sendMobileCode(String phone) throws CustomException;

    /**
     * 发送绑定验证码
     * @param phone
     * @throws CustomException
     */
    void sendBinderVerificationCode(String phone) throws CustomException;

    /**
     * 发送邮箱验证码
     * @param email
     */
    void sendEmailVerificationCode(String email) throws CustomException, MessagingException;
}
